package com.example.user.mapper.announcement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.user.domain.announcement.Announcement;
import com.example.user.domain.announcement.dto.AnnouncementQueryDTO;
import com.example.user.domain.announcement.vo.AnnouncementDetailVO;
import com.example.user.domain.announcement.vo.AnnouncementVO;

import java.util.List;

public interface AnnouncementMapper extends BaseMapper<Announcement> {
    List<AnnouncementVO> selectAnnouncementList(AnnouncementQueryDTO announcementQueryDTO);

    AnnouncementDetailVO selectDetailsById(Long announcementId);

    Long selectPreAnnouncement(Long announcementId);
    Long selectNextAnnouncement(Long announcementId);
}
